package com.github.ecbp.user.service.dto;

import com.github.ecbp.common.req.BaseIdDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@ApiModel
@Data
public class MenuDto extends BaseIdDTO {

    /**
     * 父级ID
     */
    @ApiModelProperty(value = "父级菜单ID")
    @NotNull
    private Long parentId;

    /**
     * 菜单名称
     */
    @ApiModelProperty(value = "菜单title")
    private String title;

    /**
     * 菜单级数
     */
    @ApiModelProperty(value = "菜单级别, 从0开始")
    private Integer level;

    /**
     * 菜单排序
     */
    @ApiModelProperty(value = "排序")
    private Integer sort;

    /**
     * 前端名称
     */
    @ApiModelProperty(value = "前端名称")
    @NotEmpty
    private String name;

    /**
     * 前端图标
     */
    @ApiModelProperty(value = "图标")
    private String icon;

    private Integer status;

    /*
    用户类型 总部HEADQUARTER 油站OIL_STATION 用油客户OIL_CUSTOMER
     */
    @ApiModelProperty(value = "系统类型", example = "", required = true)
    @NotEmpty
    private String systemType;
}
